module CdrHelper
  def data_format(array)
    s ="["
    s += array[0].join(',')
    for i in 1...array.size
      
    end
    s += "]"
  end
  
  def my_format(hash)
    a = Array.new
    
    for item in hash
      a << item[1]
    end
    
    return "[" + a.join(',') + "]"
  end
end
